/*
 * AGENT SHERPA
 *  
 * Assignement 2 of the Agent Oriented Software Engineering Course
 * M.Sc. in Advanced Software Engineering (Part-time)
 * University College Dublin www.ucd.ie
 *
 * Copyright (c) 2007 Chris Walsh, Aidan Morrisy and Iain Hull.
 * All rights reserved.
 */

package org.agentsherpa.model;

/**
 * Exception with a drone is tries to move or is placed on another drone
 * 
 * @author iain
 */
public class MoveException extends Exception {
    private static final long serialVersionUID = -6218100717229910538L;

    public MoveException(Point location, Drone d) {
        super("Cannot move drone " + d + " to " + location);
        this.location = location;
    }

    public Point getLocation() {
        return location;
    }

    private Point location;
}
